// import React from 'react';
// import ReactDOM from 'react-dom';
import React from './LcReact/index'
const ReactDOM = React
const useState = React.useState
// let h1 = <h1>helloworld</h1>
// let h2 = React.createElement('h1',{children:"helloworld"})
// console.log(h1)
// console.log(h2)
var timeoutid = null;
let html;
function App(){
  let [count,setCount] = useState(0)
  if(!timeoutid){
    timeoutid=setTimeout(() => {
      setCount(count+1)
      console.log(html)
      clearTimeout()
    }, 5000);
  }
  
  
  return (<div>
  <span>hi laochen</span>
  <h1>helloworld {count}</h1>
</div>);
}

ReactDOM.render(
  <App></App>,
  document.getElementById('root')
);


